/* stylelint-disable declaration-block-no-redundant-longhand-properties */
.update-all{
  display: flex;
  overflow: hidden;
}


.update-all__list{
  overflow: auto;
  display: flex;
  gap: 10px;
  flex-direction: column;
  padding: 0;
  flex-grow: 1;
}

.update-all__no-updates{
  font-size: 3rem;
  font-family: GamePocket, sans-serif;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1em;
  margin-inline: auto;
}

.update-all__list-item {
  display: grid;
  column-gap: 10px;
  row-gap: 5px;
  grid-template-areas:
    "i n v u r p"
    "i c v u r p";
  border: 1px solid black;
  background-color: rgb(0 0 0 / 10%);
  grid-template-columns: 185px 1fr max-content 100px 100px 100px;
  will-change: opacity;
  transition: opacity 0.2s;
}

.update-all__list-item--no-update{
  opacity: 0.2;
}

.update-all__list-item-image{
  grid-area: i;
  aspect-ratio: 521 / 165;
  overflow: hidden;

  img {
    height: 100%;
    width: auto;
  }
}

.update-all__list-item-name{
  grid-area: n;
  font-size: 1.5rem;
}

.update-all__list-item-platform{
  grid-area: c;
  opacity: 0.8;
}

.update-all__list-item-version{
  grid-area: v;
  font-weight: bold;
  display: flex;
  gap: 5px;
  align-self: center;
}

.update-all__list-item-update, .update-all__list-item-required-files, .update-all__list-item-platform-files {
  background-color: rgb(0 0 0 / 50%);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;

  input{
    cursor: inherit;
  }
}

.update-all__list-item-update, .update-all__list-item-required-files, .update-all__list-item-platform-files {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  justify-content: space-evenly;

  &:hover .update-all__status-icon{
    opacity: 1;
  }
}

.update-all__list-item-update{
  grid-area: u;


}

.update-all__list-item-required-files{
  grid-area: r;

}

.update-all__list-item-platform-files{
  grid-area: p;

}

.update-all__step-info{
  display: grid;
  grid-template-columns: 1fr 0.5fr;
  column-gap: 10px;
  background-color: var(--light-colour);
  border-radius: 15px;
  grid-template-areas:
    "i i"
    "u p";

  /* border: 1px solid white; */
  overflow: hidden;
  align-items: stretch;
  flex-grow: 1;

  > * {
    overflow: auto;
    height: 100%;
  }
}

.update-all__step-info-title {
  padding: 0 20px;
  grid-area: i;
  display: flex;
  justify-content: space-between;
  font-family: GamePocket, sans-serif;
  font-size: 2rem;
  line-height: 1em;
  padding-block: 15px;
  border-bottom: 1px solid rgb(255 255 255 / 60%);
  margin: 0;
  background-color: var(--info-colour);
  height: min-content;
}

.update-all__core-progress{
  height: 75%;

  /* align-self: center; */
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.update-all__status-icon{
  width: 40%;
  height: 15px;
  display: flex;
  border-radius: 10px;
  border: 1px solid white;
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 2px;
  position: relative;
  opacity: 0.6;

  &::after{
    content: "";
    display: block;
    border-radius: inherit;
    background-color: white;
    width:100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    will-change: clip-path;
    transition: clip-path 0.2s ease-out;
  }
}

.update-all__status-icon--some{
  &::after{
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  }
}

.update-all__status-icon--none{
  &::after{
    clip-path: polygon(0 0, 0% 0, 0% 100%, 0 100%);
  }
}
